﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinHBM.Utils
{
    class UtilApp
    {

        public static bool isRunning()
        {
            System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcessesByName("WinHBM");
            if (myProcesses.Length > 1) //如果可以获取到知道的进程名大于一个，则说明在此之前已经启动过
            {
                return true;
            }
            return false;
        }

    }
}
